package org.feiye.studyday04.practise;

import java.util.Scanner;

public class Week {
public static void main(String[] args) {
		// 书上第三章练习2
		Scanner sc = new Scanner(System.in);
		int num = 1;
		do {
			System.out.println("请输入数字0-7（输入0结束）：");
			num = sc.nextInt();
			switch (num) {
			case 1:
				System.out.println("MON");
				break;
			case 2:
				System.out.println("TUE");
				break;
			case 3:
				System.out.println("WED");
				break;
			case 4:
				System.out.println("THU");
				break;
			case 5:
				System.out.println("FRI");
				break;
			case 6:
				System.out.println("SAT");
				break;
			case 7:
				System.out.println("SUN");
				break;
			default:
				if (num != 0) {
				System.out.print("请重新输入，");
					break;
				}
			}
		} while (num != 0);
		System.out.println("程序结束！");
}
	}
